def is_num(obj):
    if obj == "":
        return False
    elif type(obj) == int:
        return True
    elif type(obj) == float:
        return True
    elif type(obj) == str:
        true_count = 0
        dian_count = 0
        for i in obj:
            if i in ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "."]:
                if i == ".":
                    dian_count = dian_count + 1
                true_count = true_count + 1
        if dian_count > 1:
            return False
        elif true_count == len(obj):
            return True
        else:
            return False


def print_line(num: int = 20, ins: str = "——", connect: bool = False):
    for i in range(num):
        print(ins, end="")
    if not connect:
        print()


if __name__ == "__main__":
    print("——————这是一个关于SAY项目的工具模块,请勿删除或移动,谢谢——————")
    if input("输入任意值退出:") is None:
        exit()
